/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf;

import com.controllers.DenominationController;
import com.entities.Company;
import com.entities.Denomination;
import java.io.Serializable;
import java.util.List;
import java.util.logging.Logger;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author ben
 */
@Named(value = "denominationView")
@RequestScoped
public class DenominationView implements Serializable{

    /**
     * Creates a new instance of DenominationView
     */
    public DenominationView() {
    }
                private static final Logger logger = Logger.getLogger(CompanyDenominationAction.class.getName());

                
    @EJB
    private DenominationController denominationController;
    
     private List<Denomination> denominations;


    public List<Denomination> getDenominations() {
        
        return denominations = denominationController.getAllDenominations();
    }
}
